projects
/
project
/
bcm63xx
/
u-boot.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f56da29
)
dm: sf: Update default name of spi flash in structure udevice
author
[email protected]
<
[email protected]
>
Wed, 6 May 2015 02:37:43 +0000
(10:37 +0800)
committer
Simon Glass
<
[email protected]
>
Wed, 6 May 2015 20:00:35 +0000
(14:00 -0600)
Default name of spi flash like this "0:0", update it to "spi_flash@0:0".
Signed-off-by: Haikun Wang <
[email protected]
>
Acked-by: Simon Glass <
[email protected]
>
drivers/mtd/spi/sf-uclass.c
patch
|
blob
|
history
diff --git
a/drivers/mtd/spi/sf-uclass.c
b/drivers/mtd/spi/sf-uclass.c
index 4b25902b8dcd42d579a7925a9ec26347e90bdfc4..350e21aa7d65fd81d21378136b2b197a1eefc0a4 100644
(file)
--- a/
drivers/mtd/spi/sf-uclass.c
+++ b/
drivers/mtd/spi/sf-uclass.c
@@
-53,10
+53,10
@@
int spi_flash_probe_bus_cs(unsigned int busnum, unsigned int cs,
{
struct spi_slave *slave;
struct udevice *bus;
- char name[
2
0], *str;
+ char name[
3
0], *str;
int ret;
- snprintf(name, sizeof(name), "%d:%d", busnum, cs);
+ snprintf(name, sizeof(name), "
spi_flash@
%d:%d", busnum, cs);
str = strdup(name);
ret = spi_get_bus_and_cs(busnum, cs, max_hz, spi_mode,
"spi_flash_std", str, &bus, &slave);